Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions That Modify Movie Properties / Working With Movie Spatial Characteristics


GetMovieSegmentDisplayBoundsRgn

The GetMovieSegmentDisplayBoundsRgn function allows your application to determine a movie's display boundary region during a specified segment. The display boundary region encloses all of a movie's enabled tracks after the track matrix, track clip, movie matrix, and movie clip have been applied to all of the movie's tracks. This region is in the display coordinate system. The movie's boundary encloses this region. For more on boundary regions and matrices for movies and tracks, see "Spatial Properties," which begins on page 2-15.

pascal RgnHandle GetMovieSegmentDisplayBoundsRgn (Movie theMovie, 
                                                   TimeValue time,
                                                   TimeValue
                                                   duration);
theMovie
Specifies the movie for this operation. Your application obtains this movie identifier from such functions as NewMovie, NewMovieFromFile, and NewMovieFromHandle (described on page 2-80, page 2-76, and page 2-78, respectively).
time
Specifies the starting time of the movie segment to consider. This time value must be expressed in the movie's time coordinate system. The duration parameter specifies the length of the segment.
duration
Specifies the length of the segment to consider. Set this parameter to 0 to specify an instant in time.
DESCRIPTION
The Movie Toolbox derives the display boundary region only from enabled tracks and only from those tracks that are used in the current display mode (that is, movie, poster, or preview). If you want to determine the boundary region that applies to the current movie time, you can use GetMovieDisplayBoundsRegion, which is described in the previous section.

The GetMovieSegmentDisplayBoundsRgn function allocates the region and returns a handle to the region. Your application must dispose of this region when you are done with it. If the movie does not have a spatial representation during the specified segment, the function returns an empty region. If the function could not satisfy your request, it sets the returned handle to nil.

ERROR CODES
invalidMovie-2010This movie is corrupted or invalid
invalidDuration-2014This duration value is invalid
invalidTime-2015This time value is invalid
Memory Manager errors


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996